
<style>
    .content {
        background-color: #d2d6de;
    }


    #tables{
        border: 1px solid #333;
        overflow: hidden;
        /*height: 85vh;*/
    }
    #tables > thead > tr > th{
        border: 1px solid #333;
    }
    #tables td, #tables th{
        border: 1px solid #333;
    }

    #tabless{
        border: 1px solid #333;
        overflow: hidden;
        /*height: 85vh;*/
    }
    #tabless > thead > tr > th{
        border: 1px solid #333;
    }
    #tabless td, #tabless th{
        border: 1px solid #333;
    }
    #tablesss{
        border: 1px solid #333;
        overflow: hidden;
        /*height: 85vh;*/
    }
    #tablesss > thead > tr > th{
        border: 1px solid #333;
    }
    #tablesss td, #tablesss th{
        border: 1px solid #333;
    }

    #tablessss{
        border: 1px solid #333;
        overflow: hidden;
        /*height: 85vh;*/
    }
    #tablessss > thead > tr > th{
        border: 1px solid #333;
    }
    #tablessss td, #tablessss th{
        border: 1px solid #333;
    }

    #tablesssss{
        border: 1px solid #333;
        overflow: hidden;
        /*height: 85vh;*/
    }
    #tablesssss > thead > tr > th{
        border: 1px solid #333;
    }
    #tablesssss td, #tablesssss th{
        border: 1px solid #333;
    }


</style>


<div class="col-md-7">
    <div class="box box-success">
        <div class="panel-heading">
            <h2>诊疗单:</h2>
        </div>
        <div class="panel-body">
            <table id="tables" class="table table-striped">
                <thead>
                <tr>
                    <th width="15%">序号</th>
                    <th width="17%">诊疗项目</th>
                    <th width="17%">规格型号</th>
                    <th width="17%">价格</th>
                    <th width="17%">数量</th>
                    <th width="17%">金额</th>
                </tr>
                </thead>
                <tbody>



                {foreach $diagnosiss as $index=>$vo}
                <tr>
                    <td>{$index+1}</td>
                    <td>{$vo.diagnosis_name}</td>
                    <td>{$vo.specification}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.count}</td>
                    <td>{$vo.total}</td>
                </tr>
                {/foreach}


                </tbody>
            </table>
        </div>

        <div class="panel-heading">
            <h2>药品单:</h2>
        </div>
        <div class="panel-body">

            <table id="tabless" class="table table-striped">
                <thead>
                <tr>
                    <th width="15%">序号</th>
                    <th width="17%">药品</th>
                    <th width="17%">规格型号</th>
                    <th width="17%">价格</th>
                    <th width="17%">数量</th>
                    <th width="17%">总价</th>
                </tr>
                </thead>
                <tbody>



                {foreach $drug as $index=>$vo}
                <tr>
                    <td>{$index+1}</td>
                    <td>{$vo.medicine_name}</td>
                    <td>{$vo.specification}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.count}</td>
                    <td>{$vo.total}</td>
                </tr>
                {/foreach}


                </tbody>
            </table>

        </div>

        <div class="panel-heading">
            <h2>会员服务:</h2>
        </div>
        <div class="panel-body">

            <table id="tablesss" class="table table-striped">
                <thead>
                <tr>
                    <th width="15%">序号</th>
                    <th width="17%">会员服务名称</th>
                    <th width="17%">数量</th>
                    <th width="17%">单位</th>
                    <th width="17%">单价</th>
                    <th width="17%">总价</th>
                </tr>
                </thead>
                <tbody>



                {foreach $vip as $index=>$vo}
                <tr>
                    <td>{$index+1}</td>
                    <td>{$vo.serve_name}</td>
                    <td>{$vo.count}</td>
                    <td>{$vo.units}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.total}</td>
                </tr>
                {/foreach}


                </tbody>
            </table>
        </div>

        <div class="panel-heading">
            <h2>体检项目:</h2>
            <label class="control-label ">{:__('体检项目金额')}:{$row.health_money|htmlentities}</label>
        </div>
        <div class="panel-body">

            <table id="tablessss" class="table table-striped">
                <thead>
                <tr>
                    <th width="15%">序号</th>
                    <th width="25%">体检项目名称</th>
                    <th width="25%">价格</th>
                    <th width="35%">备注</th>
                </tr>
                </thead>
                <tbody>



                {foreach $health as $index=>$vo}
                <tr>
                    <td>{$index+1}</td>
                    <td>{$vo.health_name}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.msg}</td>
                </tr>
                {/foreach}


                </tbody>
            </table>
        </div>

        <div class="panel-heading">
            <h2>疗程:</h2>
        </div>
        <div class="panel-body">

            <table id="tablesssss" class="table table-striped">
                <thead>
                <tr>
                    <th width="20%">次数</th>
                    <th width="20%">日期</th>
                    <th width="20%">健康顾问</th>
                    <th width="20%">知情同意书签字</th>
                    <th width="20%">诊后注意事项签字</th>
                </tr>
                </thead>
                <tbody>



                {foreach $treatment as $index=>$vo}
                <tr>
                    <td>{$vo.name}</td>
                    <td>{$vo.date}</td>
                    <td>{$vo.salesman_name}</td>
                    <td >
                        {if condition="$vo.imgs != ''"}
                        <img src="{$vo.imgs}" data-tips-image style="width:100%;height: 80px;" alt="知情同意书签字">
                        {/if}

                    </td>
                    <td >
                        {if condition="$vo.img != ''"}
                        <img src="{$vo.img}" data-tips-image style="width:100%;height: 80px;" alt="诊后注意事项签字">
                        {/if}

                    </td>
                </tr>
                {/foreach}


                </tbody>
            </table>
        </div>

<!--        <div class="panel-heading">-->
<!--            <h2>其它费用:</h2>-->
<!--            <label class="control-label ">{:__('第三方服务费')}:{$row.other_cost|htmlentities}</label>-->
<!--        </div>-->

<!--        <div class="panel-heading">-->
<!--            <label class="control-label ">{:__('体检项目金额')}:{$row.health_money|htmlentities}</label>-->
<!--        </div>-->

<!--        <div class="panel-heading">-->
<!--            <label class="control-label ">{$row.new_str|htmlentities}</label>-->
<!--        </div>-->
    </div>



</div>
<div class="col-md-5">
    <div class="panel panel-default panel-intro panel-nav">

        <div class="panel-body">
            <table class="table table-striped table-adminlog">
                <thead>
                <tr>
                    <th><h2>{:__('接诊信息')}</h2></th>
                    <th><h4>服务单号:{$row.code|htmlentities}</h4></th>
                </tr>
                </thead>
                <tbody>

                    <tr>
                        <td>
                            <div class="form-group">
                                <label class="control-label ">{:__('就诊人')}:{$info.name|htmlentities}</label>
                            </div>
                        </td>

                        <td>
                            <div class="form-group">
                                <label class="control-label " >{:__('就诊卡号')}:{$info.number|htmlentities}</label>
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="form-group">
                                <label class="control-label ">{:__('性别')}:{$info.sex|htmlentities}</label>
                            </div>
                        </td>

                        <td>
                            <div class="form-group">
                                <label class="control-label " >{:__('年龄')}:{$info.age|htmlentities}</label>
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="form-group">
                                <label class="control-label ">{:__('会员等级')}:{$info.level_name|htmlentities}</label>
                            </div>
                        </td>

                        <td>
                            <div class="form-group">
                                <label class="control-label " >{:__('联系电话')}:{$info.mobile|htmlentities}</label>
                            </div>
                        </td>
                    </tr>




                </tbody>
            </table>
        </div>
    </div>

    <div class="panel panel-default panel-intro panel-nav">

        <div class="panel-body">
            <table class="table table-striped table-adminlog">
                <thead>
                <tr>
                    <th><h2>{:__('费用核算')}</h2></th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('看诊项目')}:{$row.disease_name|htmlentities}</label>
                        </div>
                    </td>

                    <td>
                        <div class="form-group">
                            <label class="control-label " >{:__('专家')}:{$row.medic_name|htmlentities}</label>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('原始金额')}:{$row.count_cost|htmlentities}</label>
                        </div>
                    </td>

                    <td>
                        <div class="form-group">
                            <label class="control-label " >{:__('支付方式')}:{$row.pay|htmlentities}</label>
                        </div>
                    </td>
                </tr>

                <tr style="border-top: 2px solid #0d0d0d;">
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('会员优惠金额')}:{$row.vip_discounts|htmlentities}</label>
                        </div>
                    </td>

                    <td>
                        <div class="form-group">
                            <label class="control-label " >{:__('会员抵扣服务金额')}:{$row.vip_deduction|htmlentities}</label>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('申请优惠金额')}:{$row.iscounts_cost|htmlentities}</label>
                        </div>
                    </td>

                    <td>
                        <div class="form-group">
                            <label class="control-label " >{:__('审批单号')}:{$row.check_code|htmlentities}</label>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('第三方服务费')}:{$row.other_cost|htmlentities}</label>
                        </div>
                    </td>

                    <td>
                        <div class="form-group">
                            <label class="control-label " >{$row.new_str|htmlentities}</label>
                        </div>
                    </td>
                </tr>

                <tr style="border-top: 2px solid #0d0d0d;">
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('应收金额')}:{$row.receivable|htmlentities}</label>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('实收金额')}:{$row.reality_cost|htmlentities}</label>
                        </div>
                    </td>

                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <label class="control-label ">{:__('赊账金额')}:{$row.on_account|htmlentities}</label>
                        </div>
                    </td>

                </tr>

                <tr>
                <td>
                    <div class="form-group">
                        <label class="control-label ">{:__('确认签字')}:
                            {if condition="$row.is_signature == 1"}
                            <img src="{$row.signature}" data-tips-image style="width:100%;height: 80px;" alt="签字图片">
                            {/if}
                        </label>

                    </div>
                </td>
                </tr>



                </tbody>
            </table>
        </div>

    </div>

    <div class="panel panel-default panel-intro panel-nav">

        <div class="panel-body">
            <table class="table table-striped table-adminlog">
                <thead>
                <tr>
                    <th><h2>{:__('诊疗备注')}</h2></th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td>
                        <div class="form-group">
                            <textarea data-rule="required" disabled rows="10" cols="67">{$row.diagnosis_msgs|htmlentities}</textarea>
                        </div>
                    </td>
                </tr>


                </tbody>
            </table>
        </div>

        <div class="panel-body">
            <table class="table table-striped table-adminlog">
                <thead>
                <tr>
                    <th><h2>{:__('药品备注')}</h2></th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td>
                        <div class="form-group">
                            <textarea data-rule="required" disabled rows="10" cols="67">{$row.drug_msgs|htmlentities}</textarea>
                        </div>
                    </td>
                </tr>




                </tbody>
            </table>
        </div>

    </div>

</div>


<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
        <!--<button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>-->
    </div>
</div>